﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SAutoArenaMyInfo extends IMessageBase
    {
        public var rank:int;
        public var nextCDt:int;
        public var exp:int;
        public var power:int;
        public var needMakeMiror:Boolean;
        public const _type:int = 7021;
        public static var _regist:SAutoArenaMyInfo = new SAutoArenaMyInfo(true);

        public function SAutoArenaMyInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SAutoArenaMyInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.rank);
            param1.writeInt(this.nextCDt);
            param1.writeInt(this.exp);
            param1.writeInt(this.power);
            param1.writeBool(this.needMakeMiror);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.rank = param1.readInt();
            this.nextCDt = param1.readInt();
            this.exp = param1.readInt();
            this.power = param1.readInt();
            this.needMakeMiror = param1.readBool();
            return;
        }// end function

    }
}
